package xiaye.mycrawler;

import com.google.inject.AbstractModule;
import com.google.inject.Singleton;

public class CrawlerModule extends AbstractModule {
	@Override
	public void configure(){
		bind(Frontier.class).to(SimpleFrontier.class).in(Singleton.class);
		bind(PageStore.class).to(PrinterPageStore.class).in(Singleton.class);
		bind(Crawler.class).to(SimpleCrawler.class).in(Singleton.class);
		bind(CrawlerThread.class).to(SimpleCrawlerThread.class);
	}
}
